// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

AndroidItem {
    id: _root
    width: 720 * viewScale
    height: 1184 * viewScale
    color: "#aa000000"
    visible: false

    property string recentFramePath: ""     //

    //アプリのプレビュー
    Image{
        id: _preview
        x: 305 * viewScale
        y: 886 * viewScale
        width: 328 * viewScale
        height: 290 * viewScale
        source: "images/recent_item.png"

        //フレーム
        Image{
            id: _frame
            anchors.fill: parent
            cache: false
            source: recentFramePath
        }
    }
    //アイコン
    Image{
        id: _icon
        x: 255 * viewScale
        y: 895 * viewScale
        width: 96 * viewScale
        height: 96 * viewScale
        source: "Applications/images/ComAndroidSettings/ic_launcher_settings.png"
    }

    //全体？
    Image{
       id: _over
       anchors.fill: parent
       source: "images/recent_frame.png"
    }


    states: [
        State {
            name: "Land"
            when: !isPortrait
            PropertyChanges {
                target: _preview
                y: _root.height / 3
            }
            //全体？
            PropertyChanges {
                target: _over
                source: "images/recent_frame_land.png"
            }
            //アプリのプレビュー
            PropertyChanges {
                target: _preview
                x: 10 * viewScale
                y: 210 * viewScale
                source: "images/recent_item_land.png"
            }
            //アイコン
            PropertyChanges {
                target: _icon
                x: 20 * viewScale
                y: 165 * viewScale
            }
        }
    ]
}
